﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SP.BLL;

namespace Shopping
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btndlu_Click(object sender, EventArgs e)
        { 
            UserManager us = new UserManager();
            string name = txtyhm.Text;
            string pass = txtmim.Text;
            bool hasData = us.UserLogin(name, pass);
            if (hasData)
            {
                MessageBox.Show("登陆成功");
            }
            else
            {
                MessageBox.Show("用户名密码错误");
            }

        }
    }
}
